package net.wangds.i18n.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;
import org.springframework.context.support.ResourceBundleMessageSource;
import org.springframework.core.annotation.Order;

@Configuration
@DependsOn("springUtils")
@Order(10)
public class MessageResourceConfig {

    @Bean(value="messageSource")
    ResourceBundleMessageSource facOfMessageResource()
    {
        return new ResourceBundleMessageSource();
    }

}
